package com.graduation.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.graduation.pojo.po.Comment;
import com.graduation.pojo.query.CommentQuery;
import com.graduation.pojo.query.FrontCommentQuery;
import com.graduation.pojo.vo.CommentVO;
import com.graduation.pojo.vo.FrontCommentVO;
import org.apache.ibatis.annotations.Param;

public interface CommentMapper extends BaseMapper<Comment> {

    Page<CommentVO> selectCommentVOPage(Page<CommentVO> page, @Param("query") CommentQuery query);

    Page<FrontCommentVO> selectFrontCommentVOPage(Page<FrontCommentVO> page, @Param("query") FrontCommentQuery query);

    CommentVO selectCommentVOById(@Param("id") Long id);

}
